package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    //根据用户名查询用户
    User findUserByUserName(String username);
    void add(User user, Integer[] roleIds);

    PageResult findPage(QueryPageBean queryPageBean);

    User findById(Integer userId);

    List<Integer> findroleIdsByuserId(Integer userId);

    void edit(User user, Integer[] roleIds);

    void delete(Integer id);


    void editPassword(User user, String validateCode);
}
